package org.example.app.service.dto;

import lombok.Data;
import org.example.app.model.BookKeep;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
public class BookKeepDto {
    private Integer bookKeepId;

    private LocalDateTime addTime;

    private LocalDateTime updateTime;

    private Integer type;

    private String category;

    private BigDecimal price;

    private String remark;


    public BookKeepDto(BookKeep bookKeep) {
        this.bookKeepId = bookKeep.getId();
        this.addTime = bookKeep.getAddTime();
        this.updateTime = bookKeep.getUpdateTime();
        this.type = bookKeep.getType();
        this.category = bookKeep.getCategory();
        this.price = bookKeep.getPrice();
        this.remark = bookKeep.getRemark();
    }
}

